# Filters added to this controller will be run for all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

#ActionView::Helpers::AssetTagHelper.class_eval do
#  def compute_public_path(source, dir, ext)
#    source = "/stocks/#{dir}/#{source}.#{ext}"
#    ActionController::Base.asset_host + source
#  end
#end

Float.class_eval do
  def round_off( n )
    return self if n == 0
    (self * (10**n)).round.to_f / (10**n)
  end
end


class ApplicationController < ActionController::Base
end
